<?php
/**
 * Created by 荣耀电竞.
 * User: 林子彦 <278805354@qq.com>
 * Date: 2018/7/11 0011
 * Time: 9:39
 */
Route::group(['prefix'=>'admin/content'], function() {
    //权限
    Route::group(['middleware' => 'permission'], function () {
        //=======================================================广告操作===============================================================
        Route::get('/adv/index', ['uses' => 'AdvController@index']);  //广告中心
        Route::get('/adv/add', ['uses' => 'AdvController@add']);  //广告添加
        Route::get('/adv/edit', ['uses' => 'AdvController@edit']);  //广告编辑
        //=======================================================新闻操作===============================================================
        Route::get('/article/index', ['uses' => 'ArticleController@index']);  //新闻中心
        Route::get('/article/add', ['uses' => 'ArticleController@add']);  //新闻添加
        Route::get('/article/edit', ['uses' => 'ArticleController@edit']);  //新闻信息
        //======================================================新闻分类操作===============================================================
        Route::get('/articleclass/index', ['uses' => 'ArticleClassController@index']);  //新闻的分类
        Route::get('/articleclass/show_select_menus', ['uses' => 'ArticleClassController@classSelectMenus']);   //选择分类
        //=======================================================消息操作===============================================================
        Route::get('/bulletin/index', ['uses' => 'BulletinController@index']);  //消息中心
        Route::get('/bulletin/add', ['uses' => 'BulletinController@add']);  //消息添加
        Route::get('/bulletin/edit', ['uses' => 'BulletinController@edit']);  //消息信息

    });

   //数据提交
    Route::group(['middleware' => ['permission','response','transaction']], function () {
        //=======================================================广告操作===============================================================
        Route::post('/adv/index', ['uses' => 'AdvController@index']);  //广告列表数据
        Route::post('/adv/add', ['uses' => 'AdvController@add']);  //广告提交数据
        Route::post('/adv/edit', ['uses' => 'AdvController@edit']);  //广告编辑数据
        Route::post('/adv/del', ['uses' => 'AdvController@del']);  //广告删除数据
        Route::post('/adv/change/status', ['uses' => 'AdvController@changeStatus']);  //改变状态数据
        //=======================================================新闻分类管理操作===============================================================
        Route::post('/articleclass/index', ['uses' => 'ArticleClassController@index']);  //新闻分类列表数据
        Route::post('/articleclass/save', ['uses' => 'ArticleClassController@save']);  //新闻分类提交数据
        Route::post('/articleclass/edit', ['uses' => 'ArticleClassController@edit']);  //新闻分类编辑数据
        Route::post('/articleclass/del', ['uses' => 'ArticleClassController@del']);  //新闻分类删除数据
        //=======================================================新闻管理操作===============================================================
        Route::post('/article/index', ['uses' => 'ArticleController@index']);  //新闻列表数据
        Route::post('/article/add', ['uses' => 'ArticleController@add']);  //新闻列表数据
        Route::post('/article/edit', ['uses' => 'ArticleController@edit']);  //新闻列表数据
        Route::post('/article/del', ['uses' => 'ArticleController@del']);  //删除新闻列表数据
        Route::post('/article/change/status', ['uses' => 'ArticleController@changeStatus']);  //删除新闻列表数据
        //=======================================================消息操作===============================================================
        Route::post('/bulletin/index', ['uses' => 'BulletinController@index']);  //消息中心
        Route::post('/bulletin/add', ['uses' => 'BulletinController@add']);  //消息添加
        Route::post('/bulletin/edit', ['uses' => 'BulletinController@edit']);  //消息信息
        Route::post('/bulletin/del', ['uses' => 'BulletinController@del']);  //消息信息
        Route::post('/bulletin/change/status', ['uses' => 'BulletinController@changeStatus']);  //改变状态数据

    });
});

